import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'
import { BaseEntity } from './BaseEntity'
import { DateEntity } from './DateEntity'

@Entity({ name: 't_company' })
export class Company extends BaseEntity {
  @Column({ name: 'company_name', type: 'text', comment: '公司名称' })
  categoryName: string

  @Column({ name: 'city', type: 'text', comment: '城市' })
  city: string

  @Column({ name: 'city', type: 'text', comment: '公司地址' })
  address: string

  @Column({ name: 'link_person', type: 'text', comment: '联系人' })
  linkPerson: string

  @Column({ name: 'link_phone', type: 'text', comment: '联电话' })
  linkPhone: string

  @Column((type) => DateEntity)
  '': DateEntity
}
